package com.ysstech.finance.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.List;

import com.ysstech.common.entity.Dicvalue;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 科目核算项和辅助项对应关系表
 * </p>
 *
 * @author lishuangliang
 * @since 2022-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("fin_subject_adjust_auxilary")
public class SubjectAdjustAuxilary extends Model<SubjectAdjustAuxilary> {

    private static final long serialVersionUID = 1L;

    @TableField("ID")
    private String id;

    /**
     * 核算项编码
     */
    @TableField("ADJUST_CODE")
    private String adjustCode;

    /**
     * 辅助项编码
     */
    @TableField("AUXILARY_CODE")
    private String auxilaryCode;

    /**
     * 顺序
     */
    @TableField("SEQUENCE")
    private Integer sequence;

    /**
     * 是否启用1启用2不启用
     */
    @TableField("REQUIRED")
    private Integer required;

    /**
     * 核算方案编码
     */
    @TableField("PROJECT_ID")
    private String projectId;

    @TableField("STATUS")
    private Integer status;

    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    @TableField("ADD_USER")
    private String addUser;

    @TableField("EDIT_TIME")
    private LocalDateTime editTime;

    @TableField("EDIT_USER")
    private String editUser;

    @TableField("DELETE_REASON")
    private String deleteReason;

    @Override
    protected Serializable pkVal() {
        return null;
    }

    /**
     * 科目编码
     */
    @TableField(exist = false)
    private String subjectId;
    /**
     * 辅助项的值
     */
    @TableField(exist = false)
    private String auxilaryValue;
    /**
     * 辅助项的名称
     */
    @TableField(exist = false)
    private String auxilaryName;
    /**
     * 辅助项字典值
     */
    @TableField(exist = false)
    private List<Dicvalue> dicAuxilaryCodeList;
}
